<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>金字塔</title>
		<style>
			*{
				font-family: "Batang";
			}
		</style>
	</head>

	<body>
		<script>
			for(var i = 0; i < 5; i++) {
				for(var a = 0; a <= 5 - i; a++) {
					document.write("&nbsp;");
				}
				for(var j = 0; j <= i * 2; j++) {
					document.write("*");
				}
				document.write("<br>");
			}
		</script>
	</body>

</html>